package com.zhuiYun.project.api.dynamicstate.mapper;

import com.zhuiYun.project.api.dynamicstate.entity.DynamicStateEntity;
import com.zhuiYun.project.common.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;

/**
 * @ClassName:DynamicStateMapper
 * @descriptions: 主题mapper
 * @Author: zq
 * @Date 2023/4/18 16:07
 */
public interface DynamicStateMapper extends BaseMapper<DynamicStateEntity> {
    /**
     * @description: 主题管理查询方法
     * @author: zq
     * @date: 2023/4/18 16:36
     * @param: []
     * @return: com.zhuiYun.project.api.dynamicstate.entity.DynamicStateEntity
    **/
    @Select("SELECT * FROM dynamic_state WHERE state_flag = 1 and delete_flag = 0")
    DynamicStateEntity dynamicStateByState();
    /**
    * @Author kdj
    * @Description 获取商家信息
    * @Date 2023/5/16 10:06
    * @Return com.zhuiYun.project.api.dynamicstate.entity.DynamicStateEntity
    * @param id
    */
    @Select("SELECT * FROM dynamic_state WHERE state_flag = 1 and delete_flag = 0 and id=#{id}")
    DynamicStateEntity getMerchantInfo(int id);
}
